<{include file="common/header.tpl"}>
<section id="spread_one" class="column">
    <{if $public_notice}>
	<h4 class="alert_info"><{$public_notice}></h4>
    <{/if}>
        <article class="module width_3_quarter">
        <header>
        <{include file="effect/filter.tpl"}>
        </header>
		<div class="tab_container">
			<div id="tab1" class="tab_content">
<!-- 				<div class="channel_wrap" style="display:none">
					<span class="dl">
						<input type="checkbox" id="form_channel_one" class="cb"><label for="form_channel_one">渠道一</label>
					</span>
					<span class="dl">
						<input type="checkbox" id="form_channel_five" class="cb"><label for="form_channel_five">渠道五</label>
					</span>
					
					<div class="checkall_wrap">
						<input type="checkbox" class="check_all" id="check_all"><label for="check_all">全选</label>
					</div>
				</div> -->
			<table class="tablesorter" cellspacing="0"> 
			<thead> 
				<tr> 
    				<th>日期</th> 
					<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
					<th>项目主管</th>
					<{/if}>
    				<th>推广活动</th> 
    				<th>渠道名称</th> 
    				<th>推广数据</th> 
					<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
					<th>实际数据</th>
					<{/if}>
    				<th>计费单价</th> 
    				<th>计费标准</th> 
					<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
					<th>操作</th>
					<{/if}>
				</tr> 
			</thead> 
			<tbody>
				<{foreach from = $effects item = 'v'}> 
                <{if $v.pay_type == 'CPS'}>
					<tr>
						<td><{$out_date}></td>
						<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
							<td><{$v.manager_name}></td>
						<{/if}>
						<td><{$v.activity_name}></td>
						<td><{$v.channel_name}></td>
						<td>￥0.00</td>
					<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
						<td>￥<{$v.real_counts/100|number_format:2}></td>
					<{/if}>
						<td><{$v.price}>%</td>
						<td>收益分成</td>
					</tr> 
                <{else}>
					<tr>
						<td><{$out_date}></td>
						<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
							<td><{$v.manager_name}></td>
						<{/if}>
						<td><{$v.activity_name}></td>
						<td><{$v.channel_name}></td>
						<td><{if is_array($v.count) }><{$v.count[1]}><{else}><{$v.count}><{/if}></td>
					<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
						<td><{$v.real_counts}></td>
					<{/if}>
						<td>￥<{$v.price/100|number_format:2}></td>
						<td><{if $v.pay_param == 'newbie'}>激活<{else}>下载<{/if}></td>
						<{if $global_site_type == 'manager' and ($user_info.role_id == 'commonmanager' or $user_info.role_id == 'supermanager') }>
							<td><a href="/channel/edit_ratio/<{$v.activity_id}>/<{$v.channel_id}>">调系数</a></td>
					    <{/if}>
					</tr> 
                <{/if}>
				<{/foreach}>
			</tbody> 
			</table>
			</div><!-- end of #tab1 -->
		</div><!-- end of .tab_container -->
		</article><!-- end of content manager article -->
		<div class="clear"></div>
	</section>			
<{include file="common/footer.tpl"}>
